package win.larryzeal.redisdemo.service;

import org.springframework.stereotype.Service;
import win.larryzeal.redisdemo.pojo.City;
import win.larryzeal.redisdemo.pojo.Country;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by 张少昆 on 2017/1/5.
 */
@Service
public class SomeService {

	public List<City> selectAllCity(){
		List<City> list = new ArrayList<>();
		for(int i = 0; i != 100; ++i){
			City city = new City();
			city.setCity_id(i);
			list.add(city);
		}
		return list;
	}

	public List<Country> selectAllCountry(){
		List<Country> list = new ArrayList<>();
		for(int i = 0; i != 100; ++i){
			Country country = new Country();
			country.setCountry_id(i);
			list.add(country);
		}
		return list;
	}
}
